package com.sunducation.wts.room

import android.app.Application
import androidx.room.Room

class MyApplication  : Application() {
    companion object{
        lateinit var db : AppDatabase
        lateinit var application: MyApplication
    }
    override fun onCreate() {
        super.onCreate()
        application = this
         db  = Room.databaseBuilder(applicationContext, AppDatabase::class.java, "db_cyh.db")
             .allowMainThreadQueries()
             .build()

    }
}